package com.video.util;

/**
 * @author maomao
 */
public class VideoUtil {

    /**
     * 生成视频Id
     * @param videoId 视频Id
     * @return 视频Id
     */
    public static String getVideoId(Long videoId){
        if (videoId == null || videoId == 0){
            videoId = 10000000L + 1;
            return String.format("%08d", videoId);
        }else {
            videoId = 10000000L + videoId + 1;
            return String.format("%08d", videoId);
        }
    }

}
